<?php
if(!isset($_SERVER['PHP_AUTH_USER']))
{
	Header("WWW-Authenticate: Basic realm='Word Hot'");
	Header("HTTP/1.0 401 Unauthorized");
	exit;
}
else
{
	if ( !($_SERVER['PHP_AUTH_USER']=="wordhot" && $_SERVER['PHP_AUTH_PW']=="Reci123!") )
	{
		Header("WWW-Authenticate: Basic realm='Word Hot'");
		Header("HTTP/1.0 401 Unauthorized");
		exit;
	}
	else
	{
		?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
	<table border='2' rules='rows' align="center" cellpadding='8%'>
		<thead>
			<tr align="center">
				<th><h1>“热词”后台管理</h1></th>
			</tr>
		</thead>
		<tr>
			<td style='background-color: gray'></td>
		</tr>
		<tr align="center">
			<td><a href="views/main.php?category=0">SAT单词管理</a> <a href="../word/loadExcel.php?t=0" target=_blank>导入excel</a></td>
		</tr>
		<tr align="center">
			<td><a href="views/main.php?category=1">GRE单词管理</a> <a href="../word/loadExcel.php?t=1" target=_blank>导入excel</a></td>
		</tr>		
		<tr align="center">
			<td><a href="views/main.php?category=2">iBT单词管理</a> <a href="../word/loadExcel.php?t=2" target=_blank>导入excel</a></td>
		</tr>		
		<tr align="center">
			<td><a href="views/main.php?category=3">iBT听力单词管理</a></td>
		</tr>
		<tr>
			<td style='background-color: gray'></td>
		</tr>
		<tr align="center">
			<td><a href="views/admanager.php">热词公告管理</a></td>
		</tr>
		<tr align="center">
			<td><a href="views/updatesatad.php">SAT考团广告</a></td>
		</tr>
		<tr>
			<td style='background-color: gray'></td>
		</tr>
		<tr align="center">
			<td><a href="views/questionlist.php?page=1">问题墙回答</a></td>
		</tr>
		<tr align="center">
			<td><a href="views/tagmanager.php">标签管理</a></td>
		</tr>
	</table>
</body>
</html>
		<?php
	}	
}
?>